import http from '@/utils/http'

const ABCustManage = {

  /**
   * 甲乙端客户
   * @param {*} params
   * @returns
   */
  // 初始化下拉框列表
  async initValue(params) {
    let result = await http({
      url: `${process.env.VUE_APP_CTX_CUST}/getBasicsdata`,
      params: params,
      method: 'GET'
    })
    return result;
  },
  // 获取甲乙端客户列表
  async getCustAbList(params) {
    let result = await http({
      url: `${process.env.VUE_APP_CTX_CUST}/getCustAbList`,
      params: params,
      method: 'GET'
    })
    return result;
  },
  //操作日志
  async getCustLogList(params) {
    let result = await http({
      url: `${process.env.VUE_APP_CTX_CUST}/getCustLogList`,
      params: params,
      method: 'GET'
    })
    return result;
  },
  // 甲乙端-审核历史
  async getCustAuditList(params) {
    let result = await http({
      url: `${process.env.VUE_APP_CTX_CUST}/getCustAuditList`,
      params: params,
      method: 'GET'
    })
    return result;
  },
  // 甲乙端-审核校验
  async checkCustAudit(params) {
    let result = await http({
      url: `${process.env.VUE_APP_CTX_CUST}/checkCustAudit`,
      params: params,
      method: 'GET'
    })
    return result;
  },
  // 甲乙端 -初始化服务
  async initParty(params) {
    let result = await http({
      url: `${process.env.VUE_APP_CTX_CUST}/initParty`,
      params: params,
      method: 'GET'
    })
    return result;
  },
  // 甲乙端-完善客户保存
  async saveCustAbPerfect(params) {
    let result = await http({
      url: `${process.env.VUE_APP_CTX_CUST}/saveCustAbPerfect`,
      data: params,
      method: 'POST'
    })
    return result;
  },
   // 甲乙端-审核人接口
   async getAuditorList(params) {
    let result = await http({
      url: `${process.env.VUE_APP_CTX_CUST}/getAuditorList`,
      params: params,
      method: 'get'
    })
    return result;
  },
}
export default ABCustManage
